<%@ page language="java" import="java.util.*,java.text.SimpleDateFormat"
	pageEncoding="UTF-8"%>
<html>

<head>
<meta http-equiv="refresh" content="1">
</head>
<body>
	<h1>-----无格式------</h1>
	<%
		Date now = new Date();
	%>
	当前时间：<%=now.toLocaleString()%>
	<h1>-----有格式------</h1>
	<%
		Date now1 = new Date();
		SimpleDateFormat f = new SimpleDateFormat("今天是yyyy年MM月dd日E hh点mm分ss秒");
		out.println(f.format(now1));
	%>

</body>
</html>